package com.ycx.furns.dao;

import com.ycx.furns.entity.Furn;
import com.ycx.furns.entity.Page;

import java.util.List;

public interface FurnDAO {

    public int addStockById(int id, int count);

    public int minusStockById(int id, int count);

    public int addSalesById(int id, int count);

    public int minusSalesById(int id, int count);
    public List<Furn> queryFurns();
    public List<Furn> queryFurnsOfLimitByName(String name, int pageNo, int pageSize);

    public int addFurn(Furn furn);

    public int delFurn(Integer id);

    public Furn getFurnById(Integer id);

    public int updateFurn(Furn furn);

    public List<Furn> queryFurnsOfLimit(int pageNo, int pageSize);
    public int getTotalRowNum();
    public int getTotalRowNumByName(String name);
}
